
package ejemplodeawt;

import java.awt.*;

public class cincoBotones {

    public static void main(String[] args) {
        Frame f= new Frame("Ventana");
       FlowLayout flo= new FlowLayout();
       flo.setHgap(50);
       flo.setAlignment(FlowLayout.RIGHT);
       f.setLayout(flo);
       Button b1= new Button("uno");
       Button b2= new Button("dos");
       Button b3= new Button("tres");
       Button b4= new Button("cuatro");
       Button b5= new Button("cinco");
       f.add(BorderLayout.NORTH,b1);
       f.add(BorderLayout.SOUTH,b2);
       f.add(BorderLayout.WEST,b3);
       f.add(BorderLayout.CENTER,b4);
       f.add(BorderLayout.EAST,b5);
       f.setVisible(true);
       f.setSize(300, 300);
       f.setLocation(50, 50);
    }

}
